package cn.gok.springboot.test;

import cn.gok.springboot.entity.Student;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @ClassName test
 * @Description TODO
 * @Author HP
 * @Date 10:36 2022/7/14
 * @Version 1.0
 **/
@SpringBootTest
public class test {
//    自动装配,根据数据类型去匹配
    @Autowired
    private Student student;
    @Test
    public void test(){
        System.out.println("1");
    }
    @Test
    public void test1(){
//        System.out.println(student.getAge());
//        System.out.println(student.getTeacher());
        System.out.println(student);
    }

}
